﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.system.gzzd.index" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script>
function delete_disk(disk_id)
{
 msg='确认要删除该规章制度目录么，同时删除该路径下的所有文件？';
 if(window.confirm(msg))
 {
  URL="delete.aspx?disk_id="+disk_id;
  window.location=URL;
 }
}
		</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/notify_new.gif" align="absMiddle"><span class="big3"> 
							新建规章制度目录</span><br>
					</td>
				</tr>
			</table>
			<div align="center">
				<input type="button" value="新建规章制度目录" class="BigButton" onClick="location='new.aspx';" title="新建规章制度目录">
			</div>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/notify_open.gif" align="absMiddle"><span class="big3">
							管理规章制度目录</span>
					</td>
				</tr>
			</table>
			<br>
			<asp:Repeater id="rptgzzd" runat="server" EnableViewState="False">
			<HeaderTemplate>
			<table border="0" cellspacing="1" width="90%" class="small" bgcolor="#000000" cellpadding="3"
				align="center">
				<tr class="TableHeader">
					<td nowrap align="center">目录名称</td>					
					<td nowrap align="center">开放范围</td>
					<td nowrap align="center">可上传文件人员</td>
					<td nowrap align="center">管理人员</td>
					<td nowrap align="center">操作</td>
				</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">
						<td nowrap align="center"><%#Eval("Name")%></td>					
						<td nowrap align="center">
						<%#Eval("Type").ToString() == "1" ? "全体" : ""%>
						<%#Eval("Type").ToString() == "2" ? "指定部门" : ""%>
						<%#Eval("Type").ToString() == "3" ? "指定人员" : ""%>
						</td>
						<td><%#Eval("NewUserName")%></td>
						<td><%#Eval("ManageUserName")%></td>
						<td nowrap align="center">
							<a href="edit.aspx?disk_id=<%#Eval("DiskId")%>">编辑</a>&nbsp;&nbsp;
							<a href="javascript:delete_disk(<%#Eval("DiskId")%>);">删除</a>
						</td>
					</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td nowrap align="center"><%#Eval("Name")%></td>					
						<td nowrap align="center">
						<%#Eval("Type").ToString() == "1" ? "全体" : ""%>
						<%#Eval("Type").ToString() == "2" ? "指定部门" : ""%>
						<%#Eval("Type").ToString() == "3" ? "指定人员" : ""%>
						</td>
						<td><%#Eval("NewUserName")%></td>
						<td><%#Eval("ManageUserName")%></td>
						<td nowrap align="center">
							<a href="edit.aspx?disk_id=<%#Eval("DiskId")%>">编辑</a>&nbsp;&nbsp;
							<a href="javascript:delete_disk(<%#Eval("DiskId")%>);">删除</a>
						</td>
					</tr>
				</AlternatingItemTemplate>
				<FooterTemplate>
				</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
